/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __M2_MESH_LOADER_H__
#define __M2_MESH_LOADER_H__

#include "OgreResource.h"

namespace GNgine
{
	/** Mesh Loader that manual load m2 model.
        @remarks
			Use this class to load m2 mesh data into ogre.
    */
	class M2MeshLoader 
		: public Ogre::ManualResourceLoader
	{
	public:
		M2MeshLoader(std::string path);//m2 file path
		~M2MeshLoader();

		void loadResource(Ogre::Resource* resource);
	private:
		std::string _path;
	};
}

#endif
